import store from "@/store";

export default [
    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list"),
        meta: { title: "用户列表", authLogin: true },
    },
    {
        path: "adminsadd",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add"),
        meta: { title: "添加用户", authLogin: true },
    },
    {
        path: "adminsupdt",
        name: "AdminadminsUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "adminsupdtself",
        name: "AdminadminsUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "lunbotu",
        name: "AdminlunbotuList",
        component: () => import("@/views/lunbotu/list"),
        meta: { title: "轮播图列表", authLogin: true },
    },
    {
        path: "lunbotuadd",
        name: "AdminlunbotuAdd",
        component: () => import("@/views/lunbotu/add"),
        meta: { title: "添加轮播图", authLogin: true },
    },
    {
        path: "lunbotuupdt",
        name: "AdminlunbotuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/lunbotu/updt"),
        meta: { title: "编辑轮播图", authLogin: true },
    },
    {
        path: "shoucang",
        name: "AdminshoucangList",
        component: () => import("@/views/shoucang/list"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "shoucang_username",
        name: "AdminshoucangListusername",
        component: () => import("@/views/shoucang/list-username"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "wxuser",
        name: "AdminwxuserList",
        component: () => import("@/views/wxuser/list"),
        meta: { title: "微信用户列表", authLogin: true },
    },
    {
        path: "wxuseradd",
        name: "AdminwxuserAdd",
        component: () => import("@/views/wxuser/add"),
        meta: { title: "添加微信用户", authLogin: true },
    },
    {
        path: "wxuserupdt",
        name: "AdminwxuserUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/wxuser/updt"),
        meta: { title: "编辑微信用户", authLogin: true },
    },
    {
        path: "keshi",
        name: "AdminkeshiList",
        component: () => import("@/views/keshi/list"),
        meta: { title: "科室列表", authLogin: true },
    },
    {
        path: "keshiadd",
        name: "AdminkeshiAdd",
        component: () => import("@/views/keshi/add"),
        meta: { title: "添加科室", authLogin: true },
    },
    {
        path: "keshiupdt",
        name: "AdminkeshiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/keshi/updt"),
        meta: { title: "编辑科室", authLogin: true },
    },
    {
        path: "keshidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminkeshiDetail",
        component: () => import("@/views/keshi/detail"),
        meta: { title: "科室详情", authLogin: true },
    },
    {
        path: "yuyue",
        name: "AdminyuyueList",
        component: () => import("@/views/yuyue/list"),
        meta: { title: "预约列表", authLogin: true },
    },
    {
        path: "yuyue_yonghu",
        name: "AdminyuyueListyonghu",
        component: () => import("@/views/yuyue/list-yonghu"),
        meta: { title: "预约列表", authLogin: true },
    },
    {
        path: "yuyueadd",
        name: "AdminyuyueAdd",
        component: () => import("@/views/yuyue/add"),
        meta: { title: "添加预约", authLogin: true },
    },
    {
        path: "yuyueupdt",
        name: "AdminyuyueUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/yuyue/updt"),
        meta: { title: "编辑预约", authLogin: true },
    },
    {
        path: "yuyuedetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminyuyueDetail",
        component: () => import("@/views/yuyue/detail"),
        meta: { title: "预约详情", authLogin: true },
    },
    {
        path: "wenjuan",
        name: "AdminwenjuanList",
        component: () => import("@/views/wenjuan/list"),
        meta: { title: "问卷列表", authLogin: true },
    },
    {
        path: "wenjuan_yisheng",
        name: "AdminwenjuanListyisheng",
        component: () => import("@/views/wenjuan/list-yisheng"),
        meta: { title: "问卷列表", authLogin: true },
    },
    {
        path: "wenjuanadd",
        name: "AdminwenjuanAdd",
        component: () => import("@/views/wenjuan/add"),
        meta: { title: "添加问卷", authLogin: true },
    },
    {
        path: "wenjuanupdt",
        name: "AdminwenjuanUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/wenjuan/updt"),
        meta: { title: "编辑问卷", authLogin: true },
    },
    {
        path: "wenjuandetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminwenjuanDetail",
        component: () => import("@/views/wenjuan/detail"),
        meta: { title: "问卷详情", authLogin: true },
    },
    {
        path: "timu",
        name: "AdmintimuList",
        component: () => import("@/views/timu/list"),
        meta: { title: "题目列表", authLogin: true },
    },
    {
        path: "timu_yisheng",
        name: "AdmintimuListyisheng",
        component: () => import("@/views/timu/list-yisheng"),
        meta: { title: "题目列表", authLogin: true },
    },
    {
        path: "timuadd",
        name: "AdmintimuAdd",
        component: () => import("@/views/timu/add"),
        meta: { title: "添加题目", authLogin: true },
    },
    {
        path: "timuupdt",
        name: "AdmintimuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/timu/updt"),
        meta: { title: "编辑题目", authLogin: true },
    },
    {
        path: "dati",
        name: "AdmindatiList",
        component: () => import("@/views/dati/list"),
        meta: { title: "答题列表", authLogin: true },
    },
    {
        path: "dati_yisheng",
        name: "AdmindatiListyisheng",
        component: () => import("@/views/dati/list-yisheng"),
        meta: { title: "答题列表", authLogin: true },
    },
    {
        path: "dati_yonghu",
        name: "AdmindatiListyonghu",
        component: () => import("@/views/dati/list-yonghu"),
        meta: { title: "答题列表", authLogin: true },
    },
    {
        path: "datiadd",
        name: "AdmindatiAdd",
        component: () => import("@/views/dati/add"),
        meta: { title: "添加答题", authLogin: true },
    },
    {
        path: "datiupdt",
        name: "AdmindatiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dati/updt"),
        meta: { title: "编辑答题", authLogin: true },
    },
    {
        path: "datidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindatiDetail",
        component: () => import("@/views/dati/detail"),
        meta: { title: "答题详情", authLogin: true },
    },
    {
        path: "jieguo",
        name: "AdminjieguoList",
        component: () => import("@/views/jieguo/list"),
        meta: { title: "结果列表", authLogin: true },
    },
    {
        path: "jieguo_yisheng",
        name: "AdminjieguoListyisheng",
        component: () => import("@/views/jieguo/list-yisheng"),
        meta: { title: "结果列表", authLogin: true },
    },
    {
        path: "jieguo_yonghu",
        name: "AdminjieguoListyonghu",
        component: () => import("@/views/jieguo/list-yonghu"),
        meta: { title: "结果列表", authLogin: true },
    },
    {
        path: "jieguoadd",
        name: "AdminjieguoAdd",
        component: () => import("@/views/jieguo/add"),
        meta: { title: "添加结果", authLogin: true },
    },
    {
        path: "jieguoupdt",
        name: "AdminjieguoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/jieguo/updt"),
        meta: { title: "编辑结果", authLogin: true },
    },
    {
        path: "jieguodetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminjieguoDetail",
        component: () => import("@/views/jieguo/detail"),
        meta: { title: "结果详情", authLogin: true },
    },
    {
        path: "jianyi",
        name: "AdminjianyiList",
        component: () => import("@/views/jianyi/list"),
        meta: { title: "建议列表", authLogin: true },
    },
    {
        path: "jianyi_yisheng",
        name: "AdminjianyiListyisheng",
        component: () => import("@/views/jianyi/list-yisheng"),
        meta: { title: "建议列表", authLogin: true },
    },
    {
        path: "jianyiadd",
        name: "AdminjianyiAdd",
        component: () => import("@/views/jianyi/add"),
        meta: { title: "添加建议", authLogin: true },
    },
    {
        path: "jianyiupdt",
        name: "AdminjianyiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/jianyi/updt"),
        meta: { title: "编辑建议", authLogin: true },
    },
    {
        path: "jianyidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminjianyiDetail",
        component: () => import("@/views/jianyi/detail"),
        meta: { title: "建议详情", authLogin: true },
    },
    {
        path: "fenlei",
        name: "AdminfenleiList",
        component: () => import("@/views/fenlei/list"),
        meta: { title: "分类列表", authLogin: true },
    },
    {
        path: "fenleiadd",
        name: "AdminfenleiAdd",
        component: () => import("@/views/fenlei/add"),
        meta: { title: "添加分类", authLogin: true },
    },
    {
        path: "fenleiupdt",
        name: "AdminfenleiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/fenlei/updt"),
        meta: { title: "编辑分类", authLogin: true },
    },
    {
        path: "xinwen",
        name: "AdminxinwenList",
        component: () => import("@/views/xinwen/list"),
        meta: { title: "新闻列表", authLogin: true },
    },
    {
        path: "xinwenadd",
        name: "AdminxinwenAdd",
        component: () => import("@/views/xinwen/add"),
        meta: { title: "添加新闻", authLogin: true },
    },
    {
        path: "xinwenupdt",
        name: "AdminxinwenUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xinwen/updt"),
        meta: { title: "编辑新闻", authLogin: true },
    },
    {
        path: "xinwendetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminxinwenDetail",
        component: () => import("@/views/xinwen/detail"),
        meta: { title: "新闻详情", authLogin: true },
    },
    {
        path: "siliao",
        name: "AdminsiliaoList",
        component: () => import("@/views/siliao/list"),
        meta: { title: "私聊列表", authLogin: true },
    },
    {
        path: "siliao_faxinren",
        name: "AdminsiliaoListfaxinren",
        component: () => import("@/views/siliao/list-faxinren"),
        meta: { title: "私聊列表", authLogin: true },
    },
    {
        path: "siliaoadd",
        name: "AdminsiliaoAdd",
        component: () => import("@/views/siliao/add"),
        meta: { title: "添加私聊", authLogin: true },
    },
    {
        path: "siliaoupdt",
        name: "AdminsiliaoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/siliao/updt"),
        meta: { title: "编辑私聊", authLogin: true },
    },
    {
        path: "xiaoxi",
        name: "AdminxiaoxiList",
        component: () => import("@/views/xiaoxi/list"),
        meta: { title: "消息列表", authLogin: true },
    },
    {
        path: "xiaoxiadd",
        name: "AdminxiaoxiAdd",
        component: () => import("@/views/xiaoxi/add"),
        meta: { title: "添加消息", authLogin: true },
    },
    {
        path: "xiaoxiupdt",
        name: "AdminxiaoxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xiaoxi/updt"),
        meta: { title: "编辑消息", authLogin: true },
    },
];
